.class public Lrexsee/flash/FlashKeyboardView;
.super Lrexsee/core/widget/Div;
.source "FlashKeyboardView.java"


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;Lrexsee/flash/FlashDialog;Lrexsee/flash/FlashKeyboardParameters;)V
    .locals 6
    .param p1, "browser"    # Lrexsee/core/browser/Browser;
    .param p2, "flashDialog"    # Lrexsee/flash/FlashDialog;
    .param p3, "para"    # Lrexsee/flash/FlashKeyboardParameters;

    .prologue
    .line 17
    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-direct {p0, v4}, Lrexsee/core/widget/Div;-><init>(Landroid/content/Context;)V

    .line 18
    new-instance v2, Landroid/widget/LinearLayout;

    iget-object v4, p0, Lrexsee/flash/FlashKeyboardView;->mContext:Landroid/content/Context;

    invoke-direct {v2, v4}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 19
    .local v2, "layout":Landroid/widget/LinearLayout;
    const/4 v4, 0x1

    invoke-virtual {v2, v4}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 20
    const/16 v4, 0x50

    invoke-virtual {v2, v4}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 21
    const/4 v4, 0x0

    invoke-virtual {v2, v4}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V

    .line 23
    invoke-virtual {p3, p1, p2}, Lrexsee/flash/FlashKeyboardParameters;->getMenus(Lrexsee/core/browser/Browser;Lrexsee/flash/FlashDialog;)Ljava/util/ArrayList;

    move-result-object v3

    .line 24
    .local v3, "menus":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lrexsee/core/menu/PopMenu;>;"
    if-eqz v3, :cond_0

    .line 25
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_0
    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lt v1, v4, :cond_1

    .line 31
    .end local v1    # "i":I
    :cond_0
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "border-width:0px;"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v5, p3, Lrexsee/flash/FlashKeyboardParameters;->keyboardStyle:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p0, v4}, Lrexsee/flash/FlashKeyboardView;->setStyle(Ljava/lang/String;)V

    .line 32
    invoke-virtual {p0, v2}, Lrexsee/flash/FlashKeyboardView;->addChild(Landroid/view/View;)V

    .line 33
    return-void

    .line 26
    .restart local v1    # "i":I
    :cond_1
    new-instance v0, Lrexsee/core/widget/TabBar;

    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v5

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lrexsee/core/menu/PopMenu;

    invoke-direct {v0, v5, v4}, Lrexsee/core/widget/TabBar;-><init>(Landroid/content/Context;Lrexsee/core/menu/PopMenu;)V

    .line 27
    .local v0, "bar":Lrexsee/core/widget/TabBar;
    invoke-virtual {v2, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 25
    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method
